Clear all V-Customer data
Describes steps required to clear customer data. This is required when a customer want to test a functionality before going Live
Be very cautious whilst deleting data. Measure twice and cut once
-
Get the lease Company Id from DI Admin
-
Login to Prod Algolia
-
Go to enquirySearch Index and filter by
leaseCompanyId
facet -
You can now see the list of account Ids associated with this
leaseCompanyId
. In the facets you can see the enquiries that are sent toaccountObjectID
andserviceUnitObjectID
(there also many other facets) -
Select the
accountObjectID
from the facet -
Select a
serviceUnitObjectID
from the facetNow we have a list of enquiries for deletion for a given account and service unit
-
Login to Prod Firestore
Delete from V-Supplier
-
Go to the enquiries list for the given
accountObjectId
andserviceUnitID
/accounts/<accountObjectID>/serviceUnits/<serviceUnitObjectID>/enquiries
-
Delete the enquiries
Delete from Firestore > enquirySearchIndex
-
Go to
/algolia/enquirySearchIndex/index
-
Filter by the
leaseCompanyId
-
Delete unwanted documents
Delete from Firestore > enquiryStatus
-
Go to
/algolia/enquiryStatus/index
-
Filter by the
leaseCompanyId
-
Delete unwanted documents
Delete from Firestore > enquiryStatusIndexForVORCheckedInDesc
-
Go to
/algolia/enquiryStatusIndexForVORCheckedInDesc/index
-
Filter by the
leaseCompanyId
-
Delete unwanted documents
Delete from Firestore > billings
-
Go to
/billing/<YYYY>/<month>/enquiries/accepted/
-
Filter by the
leaseId
-
Delete unwanted documents
-
Go to
/billing/<YYYY>/<month>/enquiries/completed/
-
Filter by the
leaseId
-
Delete unwanted documents
-
Go to
/billing/<YYYY>/<month>/enquiries/invoiced/
-
Filter by the
leaseId
-
Delete unwanted documents
-
Go to
/billing/<YYYY>/<month>/enquiries/submitted/
-
Filter by the
leaseId
-
Delete unwanted documents
-
From Algolia (step 4), copy
ObjectID
Example Yvpasdasal078H4rJ1RdU_f3Wasdad8oOsAr1IEsIrR_5j0bi0xrjpasdasdW9tU0B_J14ERasdasdP3nJ0Y2MYXl
Delete from Algolia > enquiryStatusIndex
-
Go to enquiryStatusIndex and search by the copied
objectID
-
Delete the document
Delete from Algolia enquiryStatusIndex_For_VOR_checked_in_desc
-
Go to enquiryStatusIndex_For_VOR_checked_in_desc and search by the copied
objectID
-
Delete the document
Delete from Algolia > enquirySearch
-
Delete the document from enquirySearch index
-
Repeat step from previous steps
Delete from Algolia > messageQueueIndex
-
Go to messageQueueIndex
-
Apply facet filter for
leaseCompanyId
-
Delete unwanted documents
Delete from Firestore > V-Customer enquiries
-
Go to collection path
/leasecompany/<leaseCompanyId>/enquiries
-
Delete unwanted enquiries
Delete from Firestore > V-Customer exports
-
Go to collection path
/leasecompany/<leaseCompanyId>/exports/yyyy
-
Delete unwanted documents
Status: Accepted
Category: Protected
Authored By: Vishwa on Mar 22, 2023
Revisions
05 Jun, 2024 - Removed Delete from Algolia > userCounterIndex section, VN-11367